package com.common.fileupload.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Tango
 * @since 2022/6/22
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(description = "文件")
public class FileModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("文件名 带后缀")
    private String originName;

    @ApiModelProperty("存储名 带后缀")
    private String objectName;

    @ApiModelProperty("原图")
    private FileModel scaleFrom;

    @ApiModelProperty("文件类型")
    private String contentType;

    @ApiModelProperty("文件大小")
    private long size;

    @ApiModelProperty("相对路径")
    private String path;

    @ApiModelProperty("绝对路径")
    private String url;

    @ApiModelProperty("地址前缀")
    private String prefix;

    @ApiModelProperty("文件名后缀")
    private String suffix;

    @ApiModelProperty("创建时间")
    private Date crAt;


}
